package cn.tedu;


import cn.tedu.jdbcUtility;

import java.sql.Connection;
import java.sql.PreparedStatement;

public class test1 {
    public static void main(String[] args) throws Exception {
        method();
    }

    private static void method() throws Exception {
        Connection con=jdbcUtility.getConnection();
        String sql = "insert into dept(dname,loc) values(?,?);  ";
        PreparedStatement ps = con.prepareStatement(sql);

    }
}
